package org.agent.aigccore.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.agent.aigccore.basic.enums.CalendarCycleEnum;

@Slf4j
@Data
@Schema(description = "任务流运行规则模式")
public class TaskFlowRunRuleMode {

    /**
     * 每次执行间隔（单位：分钟）
     */
    @Schema(description = "每次执行间隔（单位：分钟）", example = "30")
    private Integer execIntervalMinute = 30;

    /**
     * 系统自动填写-执行描述
     */
    @Schema(description = "执行描述", example = "每30分钟执行一次")
    private String execDesc;

    /**
     * 执行时间（格式：HHmmss）
     */
    @Schema(description = "执行时间（格式：HHmmss）", example = "100000")
    private String execTime;

    /**
     * 运行周期类型，默认：每天
     * @see CalendarCycleEnum
     */
    @Schema(description = "运行周期类型", example = "DAILY")
    private String calendarCycle;

    /**
     * 执行周期类型，对应的规则
     */
    @Schema(description = "执行周期类型对应的规则", example = "1")
    private String calendarCycleNum;
}
